import type { IPageContentConfig } from '@/global/types'

const merchantApplyContentConfig: IPageContentConfig = {
  pageName: 'merchantApply',
  layout: {
    border: false,
    size: 'small',
    stripe: true
  },
  batchBtns: [
    { type: 'batchPass', label: '批量通过' },
    { type: 'batchDelete', label: '删除账号' }
  ],
  items: [
    { type: 'selection', fixed: 'left' },
    {
      type: 'custom',
      slotName: 'userInfo',
      label: '用户信息',
      minWidth: '260',
      align: 'center'
    },
    {
      type: 'custom',
      slotName: 'storeInfo',
      label: '店铺信息',
      minWidth: '200',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'certificationImageList',
      label: '申请图(点击查看更多)',
      minWidth: '150',
      align: 'center'
    },
    {
      prop: 'accountNumber',
      label: '收款账号',
      minWidth: '160',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'bankType',
      label: '收款账号类型',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'applyTime',
      label: '申请时间',
      minWidth: '150',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'applyStatus',
      label: '申请状态',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'rejectCause',
      label: '驳回原因',
      minWidth: '150',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'operationBy',
      label: '操作者',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateTime',
      label: '更新时间',
      minWidth: '150',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '行为',
      minWidth: '120',
      align: 'center',
      fixed: 'right',
      btns: [
        { type: 'pass', label: '通过' },
        { type: 'reject', label: '驳回' },
        { type: 'delete', label: '删除' }
      ]
    }
  ]
}

export default merchantApplyContentConfig
